package cn.jbit.smbms.service.impl;


import cn.jbit.smbms.dao.RoleDao;
import cn.jbit.smbms.pojo.Role;
import cn.jbit.smbms.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService {
	@Autowired
	private RoleDao roleDao;
	

	public List<Role> list() {
		return roleDao.select();
	}

	@Override
	public List<Role> listByName(String roleName) {
		return roleDao.selectByName(roleName);
	}

}
